package com.clcao.mybatis.controller.demo.scan;

import com.clcao.mybatis.common.result.Result;
import com.clcao.mybatis.services.scan.AppBranchConfigEntity;
import com.clcao.mybatis.services.service.scan.AppBranchConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author clcao
 * @since 2025/3/12
 */
@RestController
@RequestMapping("/branch")
public class AppBranchConfigController {
    @Autowired
    private AppBranchConfigService appBranchConfigService;

    @GetMapping("/list")
    public Result<List<AppBranchConfigEntity>> list() {
        return appBranchConfigService.selectAll();
    }

}
